package com.trace.app.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@SuppressWarnings("serial")
@Data
@Accessors(chain = true)
public class OrderVo implements Serializable {

    private Integer id;

    private Integer userId;

    //Product
    private Integer proId;
    private String proName;
    private Double price;
    private String img;


    //ShipAddress
    private Integer addId;
    private String addName;
    private String address;
    private String phone;

    private Integer num;

    private Double totalPrice;

    private Integer isPay;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Date updateTime;

    private Integer delFlag;

}
